package com.genius.reservation.mapper;
import com.genius.reservation.common.BaseDao.BaseDao;
import com.genius.reservation.driver.entity.DriverInformation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 司机信息表 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
@Repository
public interface DriverInformationMapper extends BaseDao<DriverInformation> {

    DriverInformation selectByDriverNumber(@Param("driverNumber") String driverNumber);
    DriverInformation selectByDriverNumberFree(@Param("driverNumber") String driverNumber);

    DriverInformation selectByDriverNumberFreeNoMap(@Param("driverNumber") String driverNumber);
    DriverInformation cancelByDriverNumber(@Param("driverNumber") String driverNumber);

    DriverInformation selectDriver(@Param("driverNumber") String driverNumber);
    List<DriverInformation> getList();

    List<DriverInformation> getListBySupplier(@Param("supplierNumber")String supplierNumber);

    DriverInformation selectDriverNoCar(@Param("driverNumber") String driverNumber);


}
